<h1>{$content.member.username}'s Wishlist</h1>

<table width="100%">
	<tr>
		<td>{mm_alpha key="filter"}</td>
		<td align="right">
			<form method="get" action="index.php">
			<input type="hidden" name="what" value="members" />
			<input type="hidden" name="do" value="wishlist" />
			<input type="hidden" name="id" value="{$content.member.id}" />
			<input type="hidden" name="genre" value="{$content.genre}" />
			<input type="hidden" name="filter" value="{$content.filter}" />
			<input type="text" name="search" value="{$content.search}" />
			<input type="submit" value="Search" /><br />
			<a href="index.php?what=search&amp;do=advanced">Advanced Search</a> |
			<a href="index.php?what=members&amp;do=collection&amp;id={$content.member.id}">Reset Results</a>
			</form>
		</td>
	</tr>
</table>
<form method="post" action="index.php" name="frm_wishlist">
<input type="hidden" name="what" value="members" />
<input type="hidden" name="do" value="wishlist" />
<table class="data_table" width="100%" cellpadding="5" cellspacing="0">
	<tr class="data_table_header">
		<td></td>
		<td>Title</td>
		<td>Owners</td>
		<td>In your collection?</td>
		<td></td>
	</tr>
	{if $content.movies}
		{foreach from=$content.movies item=m}
			<tr class="{cycle values="data_table_row_1,data_table_row_2"}">
				<td><input type="checkbox" name="id[]" value="{$m.id}" /></td>
				<td title="{$m.title}">{$m.title|truncate:"35"} ({$m.year}) {imdb url=$m.imdb_url}</td>
				<td>{$m.owners}</td>
				<td>{if $m.in_collection}Tick{else}Cross{/if}</td>
				<td>
					{if $m.in_collection == false}<a href="index.php?what=mymovies&amp;do=add&amp;id={$m.id}">Add to collection</a> | {/if}
					{if $m.in_collection == false && $m.in_wishlist == false}<a href="index.php?what=wishlist&amp;do=add&amp;id={$m.id}">Add to wishlist</a> | {/if}
					<a href="index.php?what=movie&amp;do=view&amp;id={$m.id}">View</a>
				</td>
			</tr>
		{/foreach}
	{else}
		<tr>
			<td colspan="5" align="center">Currently no movies in {$content.member.username}'s wishlist</td>
		</tr>
	{/if}
</table>
</form>
{if $content.movies}
	<img src="templates/{$config.smarty_template}/images/up_arrow.gif"> Do With Selected:
	<a href="javascript: add_collection(gId('frm_browse'));">Add to collection</a> |
	<a href="javascript: add_wishlist(gId('frm_browse'));">Add to wishlist</a> |
	<!--<a>Request to borrow</a>-->
{/if}
